package cst.a810lw.zyfypt_810lw.Service;

import java.util.List;

import cst.a810lw.zyfypt_810lw.Bean.ArticleBean;
import cst.a810lw.zyfypt_810lw.Bean.CollectBean;
import cst.a810lw.zyfypt_810lw.Bean.ProjectBean;
import cst.a810lw.zyfypt_810lw.Bean.TcaseBean;
import cst.a810lw.zyfypt_810lw.Bean.VideoBean;
import cst.a810lw.zyfypt_810lw.Bean.twareBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by liang on 2017/6/7.
 */

public interface CollectService {
    //收藏

    @GET("api.php/create/mod/collect{mod}")
    Call<String> collect(@Path("mod")String mod, @Query("resid") int resid, @Header("SessionID") String sessionID);
    //是否已收藏
    @GET("api.php/exists/mod/collect{mod}")
    Call<String> exists(@Path("mod") String mod, @Query("resid") int resid, @Header("SessionID") String sessionID);

    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectBean<ArticleBean>>> getCArticleList(
            @Path("mod") String mode,
            @Query("page") int page,
            @Header("SessionID") String SessionID);
    //收藏案例列表
    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectBean<TcaseBean>>> getCTcaseList(
            @Path("mod") String mode,
            @Query("page") int page,
            @Header("SessionID") String SessionID);
    //收藏课件列表
    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectBean<twareBean>>> getCTwareList(
            @Path("mod") String mode,
            @Query("page") int page,
            @Header("SessionID") String SessionID);
    //收藏项目列表
    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectBean<ProjectBean>>> getCPojectList(
            @Path("mod") String mode,
            @Query("page") int page,
            @Header("SessionID") String SessionID);
    //收藏视频列表
    @GET("api.php/listmycollect/mod/collect{mod}")
    Call<List<CollectBean<VideoBean>>> getCVideoList(
            @Path("mod") String mode,
            @Query("page") int page,
            @Header("SessionID") String SessionID);
}
